//
//  CommonModel.h
//  GoldOperationClient
//
//  Created by yaxue wang on 16/8/1.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import <JSONModel/JSONModel.h>

#define CModelMakePrex(prex) \
+ (JSONKeyMapper *)keyMapper{ \
return [[JSONKeyMapper alloc] initWithDictionary:[[self class] MakeDictionaryFromModelClassWithPrex:[NSString stringWithFormat:@"%@_", prex]]]; \
}
#define CModelMakeParam_Str(prex, param) @property (nonatomic, strong) NSString <Optional> * prex##_##param;
#define CModelMakeParam_Dic(prex, param) @property (nonatomic, strong) NSDictionary <Optional> * prex##_##param;
#define CModelMakeParam_F(prex, param) @property (nonatomic) float prex##_##param;
@interface CommonModel : JSONModel
+ (NSDictionary *)MakeDictionaryFromModelClassWithPrex:(NSString *)prex;

@end
